package com.numberone.system.service.impl;

import com.numberone.common.support.Convert;
import com.numberone.system.domain.TypeThird;
import com.numberone.system.mapper.TypeThirdMapper;
import com.numberone.system.service.ITypeThirdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 三级类目 服务层实现
 * 
 * @author numberone
 * @date 2020-09-25
 */
@Service
public class TypeThirdServiceImpl implements ITypeThirdService
{
	@Autowired
	private TypeThirdMapper typeThirdMapper;

	/**
     * 查询三级类目信息
     * 
     * @param id 三级类目ID
     * @return 三级类目信息
     */
    @Override
	public TypeThird selectTypeThirdById(Long id)
	{
	    return typeThirdMapper.selectTypeThirdById(id);
	}
	
	/**
     * 查询三级类目列表
     * 
     * @param typeThird 三级类目信息
     * @return 三级类目集合
     */
	@Override
	public List<TypeThird> selectTypeThirdList(TypeThird typeThird)
	{
	    return typeThirdMapper.selectTypeThirdList(typeThird);
	}
	
    /**
     * 新增三级类目
     * 
     * @param typeThird 三级类目信息
     * @return 结果
     */
	@Override
	public int insertTypeThird(TypeThird typeThird)
	{
	    return typeThirdMapper.insertTypeThird(typeThird);
	}
	
	/**
     * 修改三级类目
     * 
     * @param typeThird 三级类目信息
     * @return 结果
     */
	@Override
	public int updateTypeThird(TypeThird typeThird)
	{
	    return typeThirdMapper.updateTypeThird(typeThird);
	}

	/**
     * 删除三级类目对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTypeThirdByIds(String ids)
	{
		return typeThirdMapper.deleteTypeThirdByIds(Convert.toStrArray(ids));
	}
	
}
